home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / 352_01.zip / WFVPATH.CPP < prev    next >
C/C++ Source or Header  |  1993-04-10  |  492b  |  26 lines

  1. /* WFVPATH.C
  2.  *        form entry function to validate data paths
  3.  *        may be either NULL or C:\path\
  4.  *        must end in '\\'
  5.  *        specified path must exist 
  6.  */
  7. #include <stdlib.h>
  8.  
  9. #include "wtwg.h"
  10. #include "dblib.h"
  11.  
  12.  
  13. int wfvpath (WFORM *fm, char *buf)
  14.     {
  15.     int retcode;
  16.     retcode = validate_path ( buf );
  17.     if ( -1 == retcode )
  18.         {
  19.         wform_showerror ( fm, "Path not found" );
  20.         }
  21.     return (retcode);
  22.     }
  23.     
  24.     
  25.     /*----------------------- WFVPATH.C -----------------------------*/
  26.